// import Cookies from 'js-cookie'

const TokenKey = 'duanli_token'

export function getToken () {
  return localStorage.getItem(TokenKey)
}

export function setToken (token) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken () {
  return localStorage.removeItem(TokenKey)
}

export function getLocal (key) {
  return localStorage.getItem(key)
}

export function setLocal (key, value) {
  return localStorage.setItem(key, value)
}

export function removeLocal (key) {
  return localStorage.removeItem(key)
}
